<header>
	<h1>Hello Dotnar! {{$Cache.header.time}}</h1>
</header>
<div class="to-top pure-button" title="回到顶部" event-click="{{'$Event.header.to_top'}}"><i class="fa fa-angle-double-up"></i></div>
<style>
	header{
		height:4em;
		text-indent:2em;
		color:#DDD;

background: #45484d; /* Old browsers */
background: -moz-linear-gradient(top,  #45484d 0%, #000000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#000000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #45484d 0%,#000000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #45484d 0%,#000000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #45484d 0%,#000000 100%); /* IE10+ */
background: linear-gradient(to bottom,  #45484d 0%,#000000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); /* IE6-9 */

	}
	header h1{
		margin:0 ;
	}
</style>
<script type="text/vm">
	function(vm) {
		function clock() {
			var d = new Date;
			vm.set("$Cache.header.time", d.getHours() +
				((d.getMilliseconds() < 500) ? "：" : "　") +
				d.getMinutes())
		};
		clock();
		setInterval(clock, 500)
	}
</script>